function fmlElement(tag, attr){
	var args = Array.prototype.slice.call(arguments);
	// Shift for tag...
	args.shift();
	
	var hasAttr = true;
	if (typeof(attr) !== typeof({})){
		content = attr;
		hasAttr = false;
	}else{
		// Shift for attributes...
		args.shift();
	}
	
	var content = [];
	args.forEach(function(i){
		if (typeof(i) === typeof("") && i !== undefined){
			content.push(i);
		}
	});
		
	var out = $("<"+tag+">");
	if (hasAttr){
		out.attr(attr);
	}
	out.html(content.join());
	
	return out;
}

function require(src){
	if (!src) return false;
	var script = document.createElement("script");
	script.src = src;
	document.head.appendChild(script);
	document.head.removeChild(document.head.lastChild);
	console.log("Loaded: " + src);
	return true;
}
	

var getVar = function(id){
	var r = {};
	$("var").each(function(i){
		if (this.attr("id", id)){
			r = $(this);
		}
	});
	return r;
};